<?xml version=1.0 encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform
    xmlns:fo=http://www.w3.org/1999/XSL/Format
    version=1.0>
<xsl:output encoding="ISO-8859-1"/>

    <xsl:template match=PLANETES>
        <fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format>
            <fo:layout-master-set>
                 <fo:simple-page-master master-name=page
                     page-height=400mm page-width=300mm
                     margin-top=10mm margin-bottom=10mm
                     margin-left=20mm margin-right=20mm>

                     <fo:region-body
                       margin-top=0mm margin-bottom=10mm
                       margin-left=0mm margin-right=0mm/>

                     <fo:region-after extent=10mm/>
                 </fo:simple-page-master>
             </fo:layout-master-set>

             <fo:page-sequence master-name=page>

                 <fo:flow flow-name=xsl-region-body>
                     <fo:table>

                         <fo:table-column column-width=30mm/>
                         <fo:table-column column-width=30mm/>
                         <fo:table-column column-width=30mm/>
                         <fo:table-column column-width=30mm/>
                         <fo:table-column column-width=30mm/>
                         <fo:table-column column-width=30mm/>

                         <fo:table-body>
                             <fo:table-row>
                                 <fo:table-cell border-width=0.5mm>
                                     <fo:block font-size=18pt 
                                         font-weight=bold>
                                         Nom
                                     </fo:block>
                                 </fo:table-cell>

                                 <fo:table-cell border-width=0.5mm>
                                     <fo:block font-size=18pt 
                                         font-weight=bold>
                                         Masse
                                     </fo:block>
                                 </fo:table-cell>

                                 <fo:table-cell border-width=0.5mm>
                                     <fo:block font-size=18pt 
                                         font-weight=bold>
                                         Jour
                                     </fo:block>
                                 </fo:table-cell>

                                 <fo:table-cell border-width=0.5mm>
                                     <fo:block font-size=18pt 
                                         font-weight=bold>
                                         Rayon
                                     </fo:block>
                                 </fo:table-cell>

                                 <fo:table-cell border-width=0.5mm>
                                     <fo:block font-size=18pt 
                                         font-weight=bold>
                                         Densit
                                     </fo:block>
                                  </fo:table-cell>

                                  <fo:table-cell border-width=0.5mm>
                                      <fo:block font-size=18pt 
                                          font-weight=bold>
                                          Distance
                                      </fo:block>
                                  </fo:table-cell>
                              </fo:table-row>

                              <xsl:apply-templates/>

                          </fo:table-body>
                      </fo:table>
                 </fo:flow>
             </fo:page-sequence>
        </fo:root>
    </xsl:template>

    <xsl:template match=PLANETE>
        <fo:table-row>
            <xsl:apply-templates/>
        </fo:table-row>
    </xsl:template>

    <xsl:template match=NOM>
          <fo:table-cell border-width=0.5mm>
              <fo:block font-size=18pt>
                  <xsl:value-of select=./>
              </fo:block>
          </fo:table-cell>
    </xsl:template>

    <xsl:template match=MASSE>
          <fo:table-cell border-width=0.5mm>
              <fo:block font-size=18pt>
                  <xsl:value-of select=./>
              </fo:block>
          </fo:table-cell>
    </xsl:template>

    <xsl:template match=JOUR>
          <fo:table-cell border-width=0.5mm>
              <fo:block font-size=18pt>
                  <xsl:value-of select=./>
              </fo:block>
          </fo:table-cell>
    </xsl:template>

    <xsl:template match=RAYON>
          <fo:table-cell border-width=0.5mm>
              <fo:block font-size=18pt>
                  <xsl:value-of select=./>
              </fo:block>
          </fo:table-cell>
    </xsl:template>

    <xsl:template match=DENSITE>
          <fo:table-cell border-width=0.5mm>
              <fo:block font-size=18pt>
                  <xsl:value-of select=./>
              </fo:block>
          </fo:table-cell>
    </xsl:template>

    <xsl:template match=DISTANCE>
          <fo:table-cell border-width=0.5mm>
              <fo:block font-size=18pt>
                  <xsl:value-of select=./>
              </fo:block>
          </fo:table-cell>
    </xsl:template>

</xsl:stylesheet>
